<%--
  Created by IntelliJ IDEA.
  User: 梁家源
  Date: 2021/4/1
  Time: 20:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/css/layui.css"/>
    <script src="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/layui.js" type="text/javascript" charset="UTF-8"></script>
    <script src="${pageContext.request.contextPath}/static/script/jquery-1.7.2.js" type="text/javascript" charset="UTF-8"></script>
</head>
<body>
<fieldset class="layui-elem-field layui-field-title" >
    <legend style="margin-left: 50px;">修改类别</legend>
</fieldset>
<div class="layui-container">
    <div class="layui-row">
        <div class="layui-col-md4">
            <form class="layui-form layui-form-pane" action="${pageContext.request.contextPath}/updateCategory" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">旧类别名</label>
                    <div class="layui-input-block">
                        <input type="text" name="" value="${category.cname}" class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">新类别名</label>
                    <div class="layui-input-block">
                        <input type="text" name="cname" value="${category.cname}" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <input type="hidden" name="cid" class="form-control" value="${category.cid}" />
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">
                            <i class="layui-icon">&#xe605;</i>
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>


</div>

</body>
</html>
